ifeq ($(CONFIG_OF),y)

dtb-$(CONFIG_ARCH_MSM8974) += msm8974-v1-cdp.dtb \
	msm8974-v1-fluid.dtb \
	msm8974-v1-liquid.dtb \
	msm8974-v1-mtp.dtb \
	msm8974-v1-rumi.dtb \
	msm8974-v1-sim.dtb \
	msm8974-v2.0-1-cdp.dtb \
	msm8974-v2.0-1-fluid.dtb \
	msm8974-v2.0-1-liquid.dtb \
	msm8974-v2.0-1-mtp.dtb \
	apq8074-v2.0-1-cdp.dtb \
	apq8074-v2.0-1-liquid.dtb \
	apq8074-v2.0-1-dragonboard.dtb \
	apq8074-v2.2-cdp.dtb \
	apq8074-v2.2-liquid.dtb \
	apq8074-v2.2-dragonboard.dtb \
	msm8974-v2.2-cdp.dtb \
	msm8974-v2.2-fluid.dtb \
	msm8974-v2.2-liquid.dtb \
	msm8974-v2.2-mtp.dtb \
	msm8974pro-ab-pm8941-cdp.dtb \
	msm8974pro-ab-pm8941-fluid.dtb \
	msm8974pro-ab-pm8941-liquid.dtb \
	msm8974pro-ab-pm8941-mtp.dtb \
	msm8974pro-ac-pm8941-cdp.dtb \
	msm8974pro-ac-pm8941-liquid.dtb \
	msm8974pro-ac-pm8941-mtp.dtb \
	msm8974pro-ac-pma8084-pm8941-mtp.dtb
dtb-$(CONFIG_ARCH_MSM8909) += msm8909-sim.dtb \
	msm8909-rumi.dtb \
	msm8909-qrd-skua.dtb \
	msm8909-qrd-skuc.dtb \
	msm8909-qrd-skue.dtb \
	msm8909-cdp.dtb \
	msm8909-mtp.dtb \
	msm8909-mtp-smb1360.dtb \
	msm8909-pm8916-mtp-smb1360.dtb \
	msm8909-512mb-mtp-smb1360.dtb \
	msm8909-1gb-qrd-skua.dtb \
	msm8909-1gb-qrd-skuc.dtb \
	msm8909-1gb-qrd-skue.dtb \
	msm8909-1gb-cdp.dtb \
	msm8909-1gb-mtp.dtb \
	msm8909-1gb-rcm.dtb \
	msm8909-pm8916-1gb-rcm.dtb \
	msm8909-pm8916-mtp.dtb \
	msm8909-pm8916-cdp.dtb \
	msm8909-qhd-cdp.dtb \
	msm8909-qhd-rcm.dtb \
	msm8909-pm8916-1gb-qhd-rcm.dtb \
	msm8909-pm8916-qhd-rcm.dtb \
	msm8909-pm8916-qrd-skut.dtb \
	msm8208-cdp.dtb \
	msm8208-mtp.dtb \
	msm8208-1gb-cdp.dtb \
	msm8208-1gb-mtp.dtb \
	msm8208-qrd-skua.dtb \
	msm8208-qrd-skuc.dtb \
	msm8208-qrd-skue.dtb \
	msm8208-1gb-qrd-skua.dtb \
	msm8208-1gb-qrd-skuc.dtb \
	msm8208-1gb-qrd-skue.dtb \
	msm8208-1gb-rcm.dtb \
	msm8208-qhd-cdp.dtb \
	msm8208-qhd-rcm.dtb
ifneq ($(NUBIA_DTS_NAME),)
dtb-$(CONFIG_ARCH_MSM8916) += $(NUBIA_DTS_NAME)
else
dtb-$(CONFIG_ARCH_MSM8916) += msm8916-sim.dtb \
	msm8916-rumi.dtb \
	msm8916-cdp.dtb \
	msm8916-cdp-smb1360.dtb \
	msm8916-mtp.dtb \
	msm8916-512mb-mtp.dtb \
	msm8916-mtp-smb1360.dtb \
	msm8916-512mb-mtp-smb1360.dtb \
	msm8916-512mb-qrd-skui.dtb \
	msm8916-qrd-skuh.dtb \
	msm8916-qrd-skuhf.dtb \
	msm8916-qrd-skui.dtb \
	msm8916-qrd-skuic.dtb \
	msm8916-qrd-skuid.dtb \
	msm8916-512mb-qrd-skuid.dtb \
	msm8916-512mb-qrd-skuh.dtb \
	msm8916-qrd-skut1.dtb \
	msm8916-qrd-skut2.dtb \
	msm8916-qrd-skut3.dtb \
	apq8016-mtp.dtb \
	apq8016-mtp-smb1360.dtb \
	apq8016-sbc.dtb \
	apq8016-qrd-skuh.dtb \
	msm8939-sim.dtb \
	msm8939-rumi.dtb \
	msm8939-qrd-skuk.dtb \
	msm8939-qrd-skul.dtb \
	msm8939-cdp.dtb \
	msm8939-cdp-jdi.dtb \
	msm8939-cdp-jdi-a216-fhd.dtb \
	msm8939-mtp.dtb \
	msm8939-mtp-jdi.dtb \
	msm8939-mtp-smb1360.dtb \
	msm8939-mtp-wcd9306.dtb \
	msm8939-v3.0-qrd-skuk.dtb \
	msm8939-v3.0-qrd-skul.dtb \
	msm8939-v3.0-cdp.dtb \
	msm8939-v3.0-cdp-jdi.dtb \
	msm8939-v3.0-cdp-jdi-a216-fhd.dtb \
	msm8939-v3.0-mtp.dtb \
	msm8939-v3.0-mtp-jdi.dtb \
	msm8939-v3.0-mtp-smb1360.dtb \
	msm8939-v3.0-mtp-wcd9306.dtb \
	msm8936-qrd-skuk.dtb \
	msm8936-cdp.dtb \
	msm8936-cdp-smb1360.dtb \
	msm8936-mtp.dtb \
	msm8936-mtp-smb1360.dtb \
	msm8936-mtp-wcd9306.dtb \
	msm8952-sim.dtb \
	msm8952-rumi.dtb \
	msm8952-qrd-skum.dtb \
	msm8952-qrd-skum-dvt2.dtb \
	msm8952-cdp.dtb \
	msm8952-ext-codec-cdp.dtb \
	msm8952-mtp.dtb \
	msm8952-polaris.dtb \
	apq8052-cdp.dtb \
	apq8052-mtp.dtb \
	msm8976-sim.dtb \
	msm8976-rumi.dtb \
	msm8976-qrd-skun.dtb \
	msm8976-qrd-skun-evt2.dtb \
	msm8976-v1.1-qrd-skun-dvt.dtb \
	msm8976sg-qrd-skup.dtb \
	msm8976-cdp.dtb \
	msm8976-mtp.dtb \
	msm8976-rcm.dtb \
	msm8976-internal-codec-cdp.dtb \
	msm8976-polaris.dtb \
	apq8076-cdp.dtb \
	apq8076-mtp.dtb \
	msm8956-sim.dtb \
	msm8956-rumi.dtb \
	msm8956-cdp.dtb \
	msm8956-mtp.dtb \
	msm8956-internal-codec-cdp.dtb \
	apq8056-cdp.dtb \
	apq8056-mtp.dtb \
	msm8956-v1.1-mtp.dtb \
	msm8956-v1.1-cdp.dtb \
	msm8956-v1.1-qrd-skun.dtb \
	apq8056-v1.1-mtp.dtb \
	apq8056-v1.1-cdp.dtb \
	msm8976-v1.1-mtp.dtb \
	msm8976-v1.1-mtp-rome.dtb \
	msm8976-v1.1-cdp.dtb \
	msm8976-v1.1-rcm.dtb \
	apq8076-v1.1-mtp.dtb \
	apq8076-v1.1-cdp.dtb \
	apq8076-v1.1-mtp-rome.dtb \
	msm8929-cdp.dtb \
	msm8929-mtp.dtb \
	msm8929-mtp-smb1360.dtb \
	msm8929-mtp-jdi-smb1360.dtb \
	msm8929-mtp-wcd9306-smb1360.dtb \
	msm8929-qrd-skul.dtb \
	msm8929-qrd-skulb.dtb \
	msm8929-cdp-jdi.dtb
endif
dtb-$(CONFIG_ARCH_MSM8226) += msm8226-sim.dtb \
	msm8226-fluid.dtb \
	msm8226-v1-cdp.dtb \
	msm8226-v1-w-cdp.dtb \
	msm8226-v1-mtp.dtb \
	msm8226-v1-w-mtp.dtb \
	msm8226-v1-qrd-evt.dtb \
	msm8226-v1-qrd-dvt.dtb \
	msm8226-v2-720p-cdp.dtb \
	msm8226-v2-320p-w-cdp.dtb \
	msm8226-v2-1080p-cdp.dtb \
	msm8226-v2-720p-mtp.dtb \
	msm8226-v2-320p-w-mtp.dtb \
	msm8226-v2-1080p-mtp.dtb \
	msm8226-v2-qrd-evt.dtb \
	msm8226-v2-qrd-dvt.dtb \
	msm8926-v1-720p-cdp.dtb \
	msm8926-v1-1080p-cdp.dtb \
	msm8926-v1-720p-mtp.dtb \
	msm8926-v1-1080p-mtp.dtb \
	msm8926-v1-qrd.dtb \
	msm8926-v1-qrd-skug.dtb \
	msm8926-v1-qrd-skug-pvt.dtb \
	msm8926-v2-720p-cdp.dtb \
	msm8926-v2-1080p-cdp.dtb \
	msm8926-v2-1080p-ext-buck-cdp.dtb \
	msm8926-v2-720p-mtp.dtb \
	msm8926-v2-1080p-mtp.dtb \
	msm8926-v2-1080p-ext-buck-mtp.dtb \
	msm8926-v2-qrd.dtb \
	msm8926-v2-qrd-skug.dtb \
	msm8926-v2-qrd-skug-pvt.dtb \
	msm8226-v1-qrd-skuf.dtb \
	msm8226-v2-qrd-skuf.dtb \
	apq8026-v1-xpm.dtb \
	apq8026-v1-cdp.dtb \
	apq8026-v1-mtp.dtb \
	apq8026-v1-w-mtp.dtb \
	apq8026-v2-xpm.dtb \
	apq8026-v2-720p-cdp.dtb \
	apq8026-v2-320p-w-cdp.dtb \
	apq8026-v2-1080p-cdp.dtb \
	apq8026-v2-720p-mtp.dtb \
	apq8026-v2-320p-w-mtp.dtb \
	apq8026-v2-1080p-mtp.dtb
dtb-$(CONFIG_ARCH_MSM8610) += msm8610-rumi.dtb \
	msm8610-v1-cdp.dtb \
	msm8610-v2-cdp.dtb \
	msm8610-v1-mtp.dtb \
	msm8610-v2-mtp.dtb \
	msm8610-sim.dtb \
	msm8610-v1-qrd-skuaa.dtb \
	msm8610-v1-qrd-skuab.dtb \
	msm8610-v2-qrd-skuaa.dtb \
	msm8610-v2-qrd-skuab.dtb
dtb-$(CONFIG_ARCH_FSM9900) += fsm9900-rumi.dtb \
	fsm9900-cdp.dtb \
	fsm9900-mtp-v1.0.dtb \
	fsm9900-mtp-v1.1.dtb \
	fsm9900-mtp-v2.0.dtb
dtb-$(CONFIG_ARCH_FSM9010) += fsm9010-rumi.dtb \
	fsm9010-v1.0-mtp.dtb  \
	fsm9010-v1.0-cdp.dtb
dtb-$(CONFIG_ARCH_MDM9630) += mdm9630-v1-cdp.dtb \
	mdm9630-v1-mtp.dtb \
	mdm9630-v2-cdp.dtb \
	mdm9630-v2-mtp.dtb \
	mdm9630-v2-tsmc-cdp.dtb \
	mdm9630-v2-gf-cdp.dtb  \
	mdm9630-v2-tsmc-mtp.dtb \
	mdm9630-v2-gf-mtp.dtb
dtb-$(CONFIG_ARCH_MDMCALIFORNIUM) += mdmcalifornium-sim.dtb \
	mdmcalifornium-rumi.dtb
dtb-$(CONFIG_ARCH_MDM9640) += mdm9640-v1-emmc-cdp.dtb \
	mdm9640-v1-nand-cdp.dtb \
	mdm9640-v1-mtp.dtb \
	mdm9640-v2-emmc-cdp.dtb \
	mdm9640-v2-nand-cdp.dtb \
	mdm9640-v2-mtp.dtb
dtb-$(CONFIG_ARCH_MSMVPIPA) += msmvpipa-sim.dtb
dtb-$(CONFIG_ARCH_APQ8084) += apq8084-v1.0-old-pwr-grid-liquid.dtb \
	apq8084-v1.1-old-pwr-grid-liquid.dtb \
	apq8084-v1.1-liquid.dtb \
	apq8084-v1.0-old-pwr-grid-smb1357-cdp.dtb \
	apq8084-v1.1-old-pwr-grid-smb1357-cdp.dtb \
	apq8084-v1.1-smb1357-cdp.dtb \
	apq8084-v1.0-old-pwr-grid-smb1357-mtp.dtb \
	apq8084-v1.1-old-pwr-grid-smb1357-mtp.dtb \
	apq8084-v1.1-smb1357-mtp.dtb \
	apq8084-v1.0-old-pwr-grid-smb1359-mdm9x35-alt-mtp.dtb \
	apq8084-v1.1-old-pwr-grid-smb1359-mdm9x35-alt-mtp.dtb \
	apq8084-v1.1-smb1359-mdm9x35-alt-mtp.dtb \
	apq8084-old-pwr-grid-smb349-cdp.dtb \
	apq8084-old-pwr-grid-smb349-mtp.dtb \
	apq8084-v1.0-old-pwr-grid-smb1357-mdm9x35-alt-rcm.dtb \
	apq8084-v1.1-old-pwr-grid-smb1357-mdm9x35-alt-rcm.dtb \
	apq8084-v1.1-smb1357-mdm9x35-alt-rcm.dtb \
	apq8084-v1.0-old-pwr-grid-smb1357-mdm9x35-mtp.dtb \
	apq8084-v1.1-old-pwr-grid-smb1357-mdm9x35-mtp.dtb \
	apq8084-v1.1-smb1357-mdm9x35-mtp.dtb \
	apq8084-v1.0-old-pwr-grid-smb1357-mdm9x35-cdp.dtb \
	apq8084-v1.1-old-pwr-grid-smb1357-mdm9x35-cdp.dtb \
	apq8084-v1.1-smb1357-mdm9x35-cdp.dtb \
	apq8084-v1.0-old-pwr-grid-mdm9x35-alt-cdp.dtb \
	apq8084-v1.1-old-pwr-grid-mdm9x35-alt-cdp.dtb \
	apq8084-v1.1-mdm9x35-alt-cdp.dtb \
	apq8084-v1.1-sbc.dtb
dtb-$(CONFIG_ARCH_MSM8994) += msm8994-v1-sim.dtb \
	msm8994-rumi.dtb \
	msm8994-v1-cdp.dtb \
	msm8994-pmi8994-pm8004-v1-cdp.dtb \
	msm8994-v1-mtp.dtb \
	msm8994-pmi8994-pm8004-v1-mtp.dtb \
	msm8994-v1-liquid.dtb \
	msm8994-v1-fluid.dtb \
	apq8094-v1-cdp.dtb \
	apq8094-v1-mtp.dtb \
	apq8094-v1-liquid.dtb \
	apq8094-v1-fluid.dtb \
	apq8094-v1-dragonboard.dtb \
	msm8994-v2-sim.dtb \
	msm8994-v2.0-cdp.dtb \
	msm8994-pmi8994-pm8004-v2.0-cdp.dtb \
	msm8994-v2.0-mtp.dtb \
	msm8994-pmi8994-pm8004-v2.0-mtp.dtb \
	msm8994-v2.0-liquid.dtb \
	msm8994-v2.0-fluid.dtb \
	apq8094-v2.0-cdp.dtb \
	apq8094-v2.0-mtp.dtb \
	apq8094-v2.0-liquid.dtb \
	apq8094-v2.0-fluid.dtb \
	apq8094-v2.0-dragonboard.dtb \
	msm8994-v2.1-mtp.dtb \
	msm8994-v2.1-cdp.dtb \
	msm8994-v2.1-liquid.dtb \
	msm8994-v2.1-fluid.dtb \
	msm8994-pmi8994-pm8004-v2.1-cdp.dtb \
	msm8994-pmi8994-pm8004-v2.1-mtp.dtb \
	apq8094-v2.1-cdp.dtb \
	apq8094-v2.1-mtp.dtb \
	apq8094-v2.1-liquid.dtb \
	apq8094-v2.1-fluid.dtb \
	apq8094-v2.1-dragonboard.dtb

dtb-$(CONFIG_ARCH_MSM8992) += msm8992-sim.dtb \
	msm8992-rumi.dtb \
	msm8992-cdp.dtb \
	msm8992-mtp.dtb \
	msm8992-pmi8994-pm8004-cdp.dtb \
	msm8992-pmi8994-pm8004-mtp.dtb
dtb-$(CONFIG_ARCH_MDMFERMIUM) += mdmfermium-rumi.dtb

DTB_NAMES := $(subst $\",,$(CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES))
$(info nubia support dtb files: $(DTB_NAMES))
ifneq ($(DTB_NAMES),)
#DTB_LIST := $(addsuffix .dtb,$(DTB_NAMES))
DTB_LIST := $(DTB_NAMES)
else
DTB_LIST := $(dtb-y)
endif

targets += dtbs
targets += $(addprefix ../, $(DTB_LIST))
endif

$(obj)/../%.dtb: $(src)/%.dts FORCE
	$(call if_changed_dep,dtc)

dtbs: $(addprefix $(obj)/../,$(DTB_LIST))

clean-files := *.dtb
